package com.hh.generator.common.mapper;

import com.hh.generator.common.dto.ColumnEntity;
import com.hh.generator.common.dto.TableEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface SysGeneratorMapper {

    List<TableEntity> queryAllTable(@Param("schema") String schema);

    TableEntity queryTable(@Param("schema") String schema, @Param("tableName") String tableName);

    List<ColumnEntity> queryColumns(@Param("schema") String schema, @Param("tableName") String tableName);

}
